/**
 * Copyright 2016-2016 the original author or authors.
 * Created on 2016/12/9 下午9:36
 */
package com.mechanic.model;

import javax.persistence.Entity;
import java.io.Serializable;
import java.util.Objects;

/**
 * 请在此写下该类的说明
 *
 * @author Mechanic
 * @version 请在此写下该类的版本号
 */
@Entity
public class HelloDocker implements Serializable {
    private static final long serialVersionUID = 156921249606240617L;
    private String id;
    private String name;
    private String age;

    public HelloDocker(String id, String name, String age) {
        this.id = id;
        this.name = name;
        this.age = age;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "UserInfo{" +
               "id='" + id + '\'' +
               ", name='" + name + '\'' +
               ", age='" + age + '\'' +
               '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        HelloDocker userInfo = (HelloDocker) o;
        return Objects.equals(id, userInfo.id) &&
               Objects.equals(name, userInfo.name) &&
               Objects.equals(age, userInfo.age);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, age);
    }
}
